#pragma once
#include <d3dx9.h>

class OBB;
class AABB;
class	Frustum
{
	D3DXPLANE planes[6];
private:
	enum FrustumPlane
	{
		FP_LEFT,
		FP_RIGHT,
		FP_BOTTOM,
		FP_TOP,
		FP_NEAR,
		FP_FAR
	};

	Frustum();
	Frustum( D3DXMATRIX projection );
	void FromProjectionMatrix( D3DXMATRIX projection );
	D3DXPLANE GetPlane( Frustum::FrustumPlane type );
	bool CheckBox( OBB *box );
	bool CheckBox( AABB *box );
};